<?php
use yii\helpers\Url;
use \backend\modules\rbac\components\AccessControl;

$action = \Yii::$app->controller->action->id;
$controller = Yii::$app->controller->id;
//var_dump($actArr);
?>
  <?php
  foreach($actArr as $arr){

    if(is_array($arr)&&AccessControl::can($arr['href'])){
     ?>
      <a class="btn <?php echo $arr['btn_css'].' '.$arr['btn_id_type']; ?>" data-title="<?php echo $arr['title'] ?>" <?php echo $arr['btn_id_type'] == ''?'':'data-'; ?>href="<?php echo Url::to([$arr['href']]) ?>"><?php echo $arr['title'] ?></a>
    <?php
    }
  }
?>





